﻿using System;
using GC_RF.Domain.Enums;

namespace GC_RF.Domain.Extensions
{
	public static class UserRoleEx
	{
		public static string GetName(this UserRole data)
		{
			switch (data)
			{
				case UserRole.Administrator:
					return string.Format("Администратор");

				case UserRole.Manager:
					return string.Format("Менеджер");

				case UserRole.Moderator:
					return string.Format("Модератор");

				case UserRole.None:
					return string.Format("Гость");

				default:
					throw new NotImplementedException(string.Format("UserRole type is not implemented"));
			}
		}
	}
}
